<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" isELIgnored="false" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@page import="com.opensymphony.xwork2.ActionContext"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>国际城市三字码解析</title>
<link href="<%=request.getContextPath() %>/fare/css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/datePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/lib/ligerUI/js/ligerui.min.js"></script>
 <link href="<%=request.getContextPath() %>/fare/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> 
<link href="<%=request.getContextPath()%>/fare/js/ligerUI/skins/Gray/css/all.css" rel="stylesheet"
	type="text/css" />
<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath() %>/fare/css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/common.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/multiblepicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/FDCDialog.js"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/ajaxfileupload.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/citylist.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/querycity.js'></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/FDCDialog.js"></script>
<link rev="stylesheet" media="all" href="<%=request.getContextPath() %>/fare/css/form_style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/fdc.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/jsFile/wait/js/wait.js"></script>	
<!-- 圆角文本框 -->
<link href="<%=request.getContextPath() %>/fare/css/htc/htc.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">

 function upload(){
	  	var flag=confirm("确认上传解析？");
	  	if(!flag){
	  		return false;
	  	}
	  	$.ajaxFileUpload({
	  		secureuri:false,
 		   url: 'internationalPortIntoDBInto!excelImport.action',
 		   dataType:"json",
 		  fileElementId:'upload',
 		   success: function(msg){
 			   if(msg=='解析成功!'){
 				   alert(msg);
     			   FDCWait.hide();
 			   }
 			   
 		   }
 		});        
        	
}
</script>
</head>
<body>
	<div class="form_table_tltle" >上传解析操作 </div>
	<img src="<%=request.getContextPath()%>/images/um/ajaxLoader.gif" id="loading" style="display:none;"/>	
	 <div id="maingrid"></div>
	 <div style="float:left"><input type="file" id="upload" name="upload" value="解析" onchange="javascript:upload()"/></div>
</body>
</html>